PhpOffice\PhpSpreadsheet\Calculation\Calculation D

Total Complexity 609
Dependencies 16
Dependents 25
Total lines 4,778
Lines of code 1,726
Logical lines of code 1,185
Comment lines 714
Methods 61
Properties 33

Methods 61

Method Rating Maintainability Complexity Lines of code
_parseFormula()
D
1
144 350
processTokenStack()
D
0
139 424
executeBinaryComparisonOperation()
D
31 42 99
setLocale()
B
38 19 65
executeNumericBinaryOperation()
B
41 19 51
_calculateFormulaValue()
B
42 18 47
calculateCellValue()
B
41 16 55
resizeMatricesExtend()
A
49 15 34
resizeMatricesShrink()
A
50 15 30
extractNamedRange()
A
45 10 42
validateBinaryOperand()
A
50 11 26
showTypeDetails()
A
50 10 27
showValue()
A
50 10 26
convertMatrixReferences()
A
47 9 36
extractCellRange()
A
48 7 34
checkMatrixOperands()
S
53 7 22
_translateFormulaToEnglish()
S
53 7 21
_translateFormulaToLocale()
S
53 7 21
unwrapResult()
S
62 8 10
calculateFormula()
S
54 6 21
translateSeparator()
S
55 6 19
wrapResult()
S
61 6 11
translateFormula()
S
54 5 21
getInstance()
S
62 5 12
addCellReference()
S
58 4 15
localeFunc()
S
60 4 13
dataTestReference()
S
60 4 13
parseFormula()
S
62 4 11
getMatrixDimensions()
S
58 3 15
setArrayReturnType()
S
65 4 9
getImplementedFunctionNames()
S
65 3 9
loadLocales()
S
64 3 9
isImplemented()
S
70 3 5
getValueFromCache()
S
64 3 9
raiseFormulaError()
S
65 2 9
getTokensAsString()
S
63 2 10
calculate()
S
69 2 7
renameCalculationCacheForWorksheet()
S
70 2 6
saveValueToCache()
S
74 2 5
clearCalculationCacheForWorksheet()
S
73 2 5
getCalculationCacheEnabled()
S
82 1 3
getUnusedBranchStoreKey()
S
74 1 5
flushInstance()
S
78 1 4
getDebugLog()
S
82 1 3
getFunctions()
S
81 1 3
__clone()
S
80 1 3
getTRUE()
S
79 1 3
getFALSE()
S
79 1 3
getArrayReturnType()
S
80 1 3
setCalculationCacheEnabled()
S
77 1 4
strcmpLowercaseFirst()
S
72 1 5
getLocale()
S
81 1 3
enableCalculationCache()
S
81 1 3
disableCalculationCache()
S
81 1 3
clearCalculationCache()
S
81 1 3
mkMatrix()
S
81 1 3
setBranchPruningEnabled()
S
81 1 3
enableBranchPruning()
S
81 1 3
disableBranchPruning()
S
81 1 3
clearBranchStore()
S
81 1 3
__construct()
S
69 1 6